<!doctype html>
<html lang="zh-CN">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <meta name="referrer" content="no-referrer-when-downgrade">
    

    <title>Flutter微信分享链接跳回App指定页面 | 早起的年轻人</title>
    <meta property="og:title" content="Flutter微信分享链接跳回App指定页面 - 早起的年轻人">
    <meta property="og:type" content="article">
        
    <meta property="article:published_time" content='2021-09-23T10:40:46&#43;08:00'>
        
        
    <meta property="article:modified_time" content='2021-09-23T10:40:46&#43;08:00'>
        
    <meta name="Keywords" content="Flutter，golang,go语言,go语言笔记,飞雪无情,java,android,博客,项目管理,python,软件架构,公众号,小程序">
    <meta name="description" content="Flutter微信分享链接跳回App指定页面">
        
    <meta name="author" content="luckly">
    <meta property="og:url" content="https://luckly.work/post/flutter_tips/Flutter%E5%BE%AE%E4%BF%A1%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E8%B7%B3%E5%9B%9EApp%E6%8C%87%E5%AE%9A%E9%A1%B5%E9%9D%A2/">
    <link rel="shortcut icon" href='/favicon.ico'  type="image/x-icon">

    <link rel="stylesheet" href='/css/normalize.css'>
    <link rel="stylesheet" href='/css/style.css'>
    <script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

    
    
    
        <link href="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" rel="stylesheet">
    
    
    
    
        <link rel="stylesheet" href='/css/douban.css'>
    
        <link rel="stylesheet" href='/css/other.css'>
    
</head>

<link rel="stylesheet"
      href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
<body>
    <header id="header" class="clearfix">
    <div class="container">
        <div class="col-group">
            <div class="site-name ">
                
                    <a id="logo" href="https://luckly.work/">
                        早起的年轻人
                    </a>
                
                <p class="description">专注于Flutter、Android、Java、Go语言(golang)、移动互联网、项目管理、软件架构</p>
            </div>
            <div>
                <nav id="nav-menu" class="clearfix">
                    <a class="current" href="https://luckly.work/">首页</a>
                    
                    <a  href="https://luckly.work/categories/" title="分类">分类</a>
                    
                    <a  href="https://luckly.work/tags/" title="标签">标签</a>
                    
                    <a  href="https://luckly.work/archives/" title="归档">归档</a>
                    
                    <a  href="https://luckly.work/about/" title="关于我">关于我</a>
                    
                    <a  href="https://github.com/ITmxs/" title="github">github</a>
                    
                </nav>
            </div>
        </div>
    </div>
</header>

    <div id="body">
        <div class="container">
            <div class="col-group">

                <div class="col-8" id="main">
                    
<div class="res-cons">
    <style type="text/css">
    .post-toc {
        position: fixed;
        width: 200px;
        margin-left: -210px;
        padding: 5px 10px;
        font-family: Athelas, STHeiti, Microsoft Yahei, serif;
        font-size: 12px;
        border: 1px solid rgba(0, 0, 0, .07);
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.98);
        background-clip: padding-box;
        -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        word-wrap: break-word;
        white-space: nowrap;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        z-index: 999;
        cursor: pointer;
        max-height: 70%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .post-toc .post-toc-title {
        width: 100%;
        margin: 0 auto;
        font-size: 20px;
        font-weight: 400;
        text-transform: uppercase;
        text-align: center;
    }

    .post-toc .post-toc-content {
        font-size: 15px;
    }

    .post-toc .post-toc-content>nav>ul {
        margin: 10px 0;
    }

    .post-toc .post-toc-content ul {
        padding-left: 20px;
        list-style: square;
        margin: 0.5em;
        line-height: 1.8em;
    }

    .post-toc .post-toc-content ul ul {
        padding-left: 15px;
        display: none;
    }

    @media print,
    screen and (max-width:1057px) {
        .post-toc {
            display: none;
        }
    }
</style>
<div class="post-toc" style="position: absolute; top: 188px;">
    <h2 class="post-toc-title">文章目录</h2>
    <div class="post-toc-content">
        <nav id="TableOfContents">
  <ul>
    <li><a href="#配置依赖">配置依赖</a></li>
    <li><a href="#android配置">Android配置</a></li>
    <li><a href="#ios配置">IOS配置</a></li>
    <li><a href="#flutter调用">Flutter调用</a></li>
  </ul>

  <ul>
    <li><a href="#配置依赖-1">配置依赖</a></li>
    <li><a href="#android配置-1">Android配置</a></li>
    <li><a href="#ios配置-1">IOS配置</a></li>
    <li><a href="#flutter调用-1">Flutter调用</a></li>
    <li><a href="#中转页面">中转页面</a></li>
    <li><a href="#url-scheme的作用">URL Scheme的作用</a>
      <ul>
        <li><a href="#ios-scheme介绍">iOS Scheme介绍</a></li>
        <li><a href="#android-scheme介绍">Android Scheme介绍</a></li>
      </ul>
    </li>
    <li><a href="#使用uni_linkshttpslinkjuejincntargethttps3a2f2fpubdev2fpackages2funi_links23-installing-tab-库">使用<a href="https://link.juejin.cn?target=https%3A%2F%2Fpub.dev%2Fpackages%2Funi_links%23-installing-tab-">uni_links</a>库</a>
      <ul>
        <li><a href="#1-pubspecyaml文件新增依赖">1 、<code>pubspec.yaml</code>文件新增依赖</a></li>
        <li><a href="#2-安装">2 、安装</a></li>
        <li><a href="#3dart代码中使用插件">3、Dart代码中使用插件</a></li>
      </ul>
    </li>
    <li><a href="#android-配置">Android 配置</a>
      <ul>
        <li><a href="#androidappsrcmainandroidmanifestxml"><code>android/app/src/main/AndroidManifest.xml</code></a></li>
      </ul>
    </li>
    <li><a href="#ios-配置">iOS 配置</a>
      <ul>
        <li><a href="#打开xcode-info-url-types设置url-scheme">打开<code>Xcode-&gt;Info-&gt;URL Types</code>设置<code>URL Scheme</code></a></li>
      </ul>
    </li>
    <li><a href="#dart-代码">Dart 代码</a></li>
    <li><a href="#scheme-测试地址httpslinkjuejincntargethttps3a2f2ftecodegithubio2fdynamic_theme2fdocument2findexhtml">Scheme <a href="https://link.juejin.cn?target=https%3A%2F%2Ftecode.github.io%2Fdynamic_theme%2Fdocument%2Findex.html">测试地址</a></a></li>
    <li><a href="#ios-效果预览">iOS 效果预览</a>
      <ul>
        <li><a href="#未打开app开启以后跳转">未打开App（开启以后跳转）</a></li>
        <li><a href="#已打开app监听scheme">已打开App（监听Scheme）</a></li>
      </ul>
    </li>
    <li><a href="#android-效果预览">Android 效果预览</a>
      <ul>
        <li><a href="#未打开app开启以后跳转-1">未打开App（开启以后跳转）</a></li>
        <li><a href="#已打开app监听scheme-1">已打开App（监听Scheme）</a></li>
      </ul>
    </li>
  </ul>
</nav>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        var postToc = $(".post-toc");
        if (postToc.length) {
            var leftPos = $("#main").offset().left;
            if(leftPos<220){
                postToc.css({"width":leftPos-10,"margin-left":(0-leftPos)})
            }

            var t = postToc.offset().top - 20,
                a = {
                    start: {
                        position: "absolute",
                        top: t
                    },
                    process: {
                        position: "fixed",
                        top: 20
                    },
                };
            $(window).scroll(function () {
                var e = $(window).scrollTop();
                e < t ? postToc.css(a.start) : postToc.css(a.process)
            })
        }
    })
</script>
    <article class="post">
        <header>
            <h1 class="post-title">Flutter微信分享链接跳回App指定页面</h1>
        </header>
        <date class="post-meta meta-date">
            2021年9月23日
        </date>
        
        <div class="post-meta">
            <span>|</span>
            
            <span class="meta-category"><a href='/categories/flutter'>flutter</a></span>
            
        </div>
        
        
        <div class="post-meta">
            <span id="busuanzi_container_page_pv">|<span id="busuanzi_value_page_pv"></span><span>
                    阅读</span></span>
        </div>
        
        
        <div class="post-content">
            <p>最近在使用flutter开发APP，flutter实现了一套代码同时生成Android和iOS两个平台的APP，可以实现零基础快速上手APP开发，缩短开发周期。但flutter仍处于较快增长期，版本迭代速度快，文档资料相对较少，这里将开发中遇到的一些问题整理下来，备忘+分享。</p>
<p>flutter版本：1.12.13+hotfix.5</p>
<h1 id="微信分享">微信分享</h1>
<p>这里使用fluwx插件实现微信中分享，版本号1.2.1+1。</p>
<h2 id="配置依赖">配置依赖</h2>
<p>在pubspec.yaml中增加依赖</p>
<pre><code>dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  #other dependencies
  fluwx: ^1.2.1+1
</code></pre><h2 id="android配置">Android配置</h2>
<p>如果需要微信回调，需要配置WXEntryActivity和WXPayEntryActivity，如果不使用回调，则不需要特殊配置。详见官方doc</p>
<h2 id="ios配置">IOS配置</h2>
<p>如官方文档所示，需要配置ios的<em>URLSchema, LSApplicationQueriesSchemes or universal link</em></p>
<p>
        <a data-fancybox="gallery" href="https://luckly007.oss-cn-beijing.aliyuncs.com/image/aa946417aadd26e2a22350ad08e24a79.png">
            <img class="mx-auto" alt="img" src="https://luckly007.oss-cn-beijing.aliyuncs.com/image/aa946417aadd26e2a22350ad08e24a79.png" />
        </a>
    </p>
<p>ios/Runner/Info.plist</p>
<pre><code>&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
    &lt;array&gt;
    &lt;dict&gt;
        &lt;key&gt;CFBundleTypeRole&lt;/key&gt;
        &lt;string&gt;Editor&lt;/string&gt;
        &lt;key&gt;CFBundleURLName&lt;/key&gt;
        &lt;string&gt;your url name&lt;/string&gt;
        &lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
        &lt;array&gt;
            &lt;string&gt;your scheme&lt;/string&gt;
        &lt;/array&gt;
    &lt;/dict&gt;
    &lt;dict&gt;
        &lt;key&gt;CFBundleTypeRole&lt;/key&gt;
        &lt;string&gt;Editor&lt;/string&gt;
        &lt;key&gt;CFBundleURLName&lt;/key&gt;
        &lt;string&gt;weixin&lt;/string&gt;
        &lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
        &lt;array&gt;
            &lt;string&gt;you wechat appid&lt;/string&gt;
        &lt;/array&gt;
    &lt;/dict&gt;
&lt;/array&gt;
&lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt;
&lt;array&gt;
    &lt;string&gt;wechat&lt;/string&gt;
    &lt;string&gt;weixin&lt;/string&gt;
    &lt;string&gt;weixinULAPI&lt;/string&gt;
&lt;/array&gt;
</code></pre><p>其中CFBundleURLTypes的第一项是为了能够从url跳回APP所设置</p>
<p>ios/Runner/Runner.entitlements</p>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
&lt;dict&gt;
  &lt;!-- ... other keys --&gt;
  &lt;key&gt;com.apple.developer.associated-domains&lt;/key&gt;
  &lt;array&gt;
    &lt;string&gt;webcredentials:your universal link&lt;/string&gt;
  &lt;/array&gt;
  &lt;!-- ... other keys --&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</code></pre><p>这里的universal link要与微信开放平台上的设置保持一致。</p>
<h2 id="flutter调用">Flutter调用</h2>
<p>注册微信sdk，如果用于ios，必须指定<em>universalLink</em></p>
<pre><code>import 'package:fluwx/fluwx.dart' as fluwx;
@override
void initState() {
    fluwx.registerWxApi(
        appId: your wechat appid,
        doOnAndroid: true,
        doOnIOS: true,
        universalLink: your universal link
    );
}
</code></pre><p>分享，以图文链接到好友为例</p>
<pre><code>fluwx.shareToWeChat(
    fluwx.WeChatShareWebPageModel(
        title: your title, 
        description: your description(can split by \n),
        webPage: 'https://example.com/app/jump.html?pageName=xx&amp;id=xx',
        thumbnail: 'https://example.com/images/share_weixin.png',
        scene: fluwx.WeChatScene.SESSION
        )
    ).then((data) {
    print (data);
});

</code></pre><p>至此，可实现从APP分享到微信，下一步将从微信点击分享后的链接，唤起APP并直接打开指定页面。</p>
<h1 id="打开app指定页面">打开APP指定页面</h1>
<p>从APP分享出去只是产品宣传的第一步，下一步需要接收到的用户通过点击链接卡片可以打开我们的APP的某个指定页面。当然，用户点击分享链接后，可以打开产品的小程序or网页版，以更好的提升体验，这里仅以跳转APP为例。</p>
<p>很多文档提到改写Activity类来实现跳转链接参数的解析，从而进一步跳转到指定页面，但随着flutter的升级，kotlin的Activity相关API有明显变化，由于笔者并未做过Android开发，所以放弃了硬写的方案，这里使用uni_links来实现参数的解析。</p>
<h2 id="配置依赖-1">配置依赖</h2>
<pre><code>1uni_links: ^0.2.0
2
</code></pre><h2 id="android配置-1">Android配置</h2>
<p>android/app/src/main/AndroidManifest.xml</p>
<pre><code>&lt;activity
    android:name=&quot;.MainActivity&quot;
    android:launchMode=&quot;singleTop&quot;
    android:theme=&quot;@style/LaunchTheme&quot;
    android:configChanges=&quot;orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode&quot;
    android:hardwareAccelerated=&quot;true&quot;
    android:windowSoftInputMode=&quot;adjustResize&quot;&gt;
    &lt;meta-data
        android:name=&quot;io.flutter.app.android.SplashScreenUntilFirstFrame&quot;
        android:value=&quot;true&quot; /&gt;
    &lt;intent-filter&gt;
        &lt;action android:name=&quot;android.intent.action.MAIN&quot;/&gt;
        &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;/&gt;
    &lt;/intent-filter&gt;
    &lt;intent-filter&gt;
        &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;
        &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
        &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;
        &lt;data
            android:scheme=&quot;yourScheme&quot;
            android:host=&quot;yourHost&quot;
        /&gt;
    &lt;/intent-filter&gt;
&lt;/activity&gt;
</code></pre><h2 id="ios配置-1">IOS配置</h2>
<p>在上面微信配置中已加入相关配置（这里没有使用HTTPS scheme，如果使用的话，还需要一些额外配置，详见uni_link的文档）</p>
<h2 id="flutter调用-1">Flutter调用</h2>
<p>uni_link的官方example已经非常详尽，照着来就可以实现，如下是我的实现</p>
<p>在main.dart中实现</p>
<pre><code>class MyAppState extends State&lt;MyApp&gt; with WidgetsBindingObserver {
  StreamSubscription _sub;
  String _latestLink = 'Unknown';
  Uri _latestUri;
  // This widget is the root of your application.
  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  @override
  void dispose() {
    if (_sub != null) _sub.cancel();
    super.dispose();
  }

  Future&lt;void&gt; initPlatformState() async {
    _sub = getLinksStream().listen((String link) {
      if (!mounted) return;
      setState(() {
        _latestLink = link ?? &quot;Unknown&quot;;
        _latestUri = null;
        try {
          if (link != null) _latestUri = Uri.parse(link);
        } on FormatException {}
      });
    }, onError: (err) {
      if (!mounted) return;
      setState(() {
        _latestLink = 'Failed to get latest link: $err.';
        _latestUri = null;
      });
    });
    getLinksStream().listen((String link) {
      print('got link: $link');
    }, onError: (err) {
      print('got err: $err');
    });
    String initialLink;
    Uri initialUri;
    try {
      initialLink = await getInitialLink();
      print('initial link: $initialLink');
      if (initialLink != null) initialUri = Uri.parse(initialLink);
    } on PlatformException {
      initialLink = 'Failed to get initial link.';
      initialUri = null;
    } on FormatException {
      initialLink = 'Failed to parse the initial link as Uri.';
      initialUri = null;
    }
    if (!mounted) return;

    setState(() {
      _latestLink = initialLink;
      _latestUri = initialUri;
    });
  }

  @override
  Widget build(BuildContext context) {
    final queryParams = _latestUri?.queryParametersAll?.entries?.toList();
    // print (queryParams);
    // print (queryParams?.length);
    Widget homeWidget = new SplashPage();
    String pageType;
    String taskID;
    if (queryParams != null) {
      for (var param in queryParams) {
        if (param.key == 'pageName') {
          pageType = param.value.length &gt; 0 ? param.value[0] : null;
        }
        if (param.key == 'taskid') {
          taskID = param.value.length &gt; 0 ? param.value[0] : null;
        }
      }
    }
    print (pageType);
    if (pageType == 'report') {
      homeWidget = new ReportPage(taskID: taskID,);
    }
    return MaterialApp(
      routes: {
        Config.routeMain: (context) =&gt; MyHomePage()
      },
      debugShowCheckedModeBanner: false,
      title: 'your title',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: homeWidget
    );
  }
}
</code></pre><h2 id="中转页面">中转页面</h2>
<p>这里写了一个简单的中转页面</p>
<pre><code>&lt;!Doctype html&gt;
&lt;html xmlns=http://www.w3.org/1999/xhtml&gt;
&lt;head&gt;
    &lt;meta http-equiv=Content-Type content=&quot;text/html;charset=utf-8&quot;&gt;
    &lt;title&gt;Your Title&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;style&gt;
        #mobliestart{font-size:40px;}
    &lt;/style&gt;
    &lt;a href='yourScheme://yourHost?page=report&amp;taskid=1' id=&quot;mobliestart&quot;&gt;点击打开APP&lt;/a&gt;

    &lt;script type=&quot;text/javascript&quot;&gt; 
        function applink(){   
            window.location = 'yourScheme://yourHost?page=report&amp;taskid=1'; 
        }
        applink();
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre><p>中转页面设置了自动跳转和点击跳转，由于微信浏览器对scheme link的限制，ios和Android都需要点击右上角的‘浏览器中打开’。ios（iPhone xr，13.3）在Safari中打开后会自动弹出对话框，Android（华为）在系统浏览器和chrome会自动弹出对话框，qq浏览器需要点击页面超链接才会弹出对话框。</p>
<p>
        <a data-fancybox="gallery" href="https://luckly007.oss-cn-beijing.aliyuncs.com/image/ff00d89f0d3885fab302bfdf0efa6bb4.png">
            <img class="mx-auto" alt="img" src="https://luckly007.oss-cn-beijing.aliyuncs.com/image/ff00d89f0d3885fab302bfdf0efa6bb4.png" />
        </a>
    
        <a data-fancybox="gallery" href="https://luckly007.oss-cn-beijing.aliyuncs.com/image/37fa289846aa5d3eba58902528d6e721.png">
            <img class="mx-auto" alt="img" src="https://luckly007.oss-cn-beijing.aliyuncs.com/image/37fa289846aa5d3eba58902528d6e721.png" />
        </a>
    </p>
<p>注：目前仍存在一个问题，如果APP处于后台打开状态，从链接打开后，只是唤起APP，并不会跳转到指定页面，通过打印日志，build函数中解析链接参数的逻辑解析正确，目前这个问题还未进一步解决。</p>
<h2 id="url-scheme的作用">URL Scheme的作用</h2>
<h3 id="ios-scheme介绍">iOS Scheme介绍</h3>
<p>我们都知道苹果手机中的APP都有一个沙盒，APP就是一个信息孤岛，相互是不可以进行通信的。但是iOS的APP可以注册自己的URL Scheme，URL Scheme是为方便app之间互相调用而设计的。我们可以通过系统的OpenURL来打开该app，并可以传递一些参数。</p>
<p>例如：你在Safari里输入www.alipay.com，就可以直接打开你的支付宝app，前提是你的手机装了支付宝。如果你没有装支付宝，应该显示的是支付宝下载界面，点击会跳到AppStore的支付宝下载界面。</p>
<p>URL Scheme必须能唯一标识一个APP，如果你设置的URL Scheme与别的APP的URL Scheme冲突时，你的APP不一定会被启动起来。因为当你的APP在安装的时候，系统里面已经注册了你的URL Scheme。</p>
<p>一般情况下，是会调用先安装的app。但是iOS的系统app的URL Scheme肯定是最高的。所以我们定义URL Scheme的时候，尽量避开系统app已经定义过的URL Scheme。</p>
<h3 id="android-scheme介绍">Android Scheme介绍</h3>
<p>android中的scheme是一种页面内跳转协议;</p>
<p>通过定义自己的scheme协议，可以非常方便跳转app中的各个页面；</p>
<p>通过scheme协议，服务器可以定制化告诉App跳转到APP内部页面。</p>
<h2 id="使用uni_linkshttpslinkjuejincntargethttps3a2f2fpubdev2fpackages2funi_links23-installing-tab-库">使用<a href="https://link.juejin.cn?target=https%3A%2F%2Fpub.dev%2Fpackages%2Funi_links%23-installing-tab-">uni_links</a>库</h2>
<h3 id="1-pubspecyaml文件新增依赖">1 、<code>pubspec.yaml</code>文件新增依赖</h3>
<pre><code>dependencies:
  uni_links: 0.4.0
复制代码
</code></pre><h3 id="2-安装">2 、安装</h3>
<pre><code>flutter pub get

Running &quot;flutter pub get&quot; in dynamic_theme...                       5.8s
Process finished with exit code 0
复制代码
</code></pre><h3 id="3dart代码中使用插件">3、Dart代码中使用插件</h3>
<pre><code>import 'package:uni_links/uni_links.dart';
复制代码
</code></pre><h2 id="android-配置">Android 配置</h2>
<p><strong>⚠️注意：Scheme 命名不支持<code>dynamic_theme</code>在<code>iOS</code>中测试了一下无法打开,改成了全小写<code>dynamictheme</code></strong></p>
<h3 id="androidappsrcmainandroidmanifestxml"><code>android/app/src/main/AndroidManifest.xml</code></h3>
<p><strong>新增以下代码<a href="https://link.juejin.cn?target=https%3A%2F%2Fgithub.com%2FTecode%2Fdynamic_theme%2Fblob%2F852afd2e3ebc85c9d143324cc5282b20cda233c2%2Fios%2FRunner%2FInfo.plist%23L22">查看完整代码</a></strong></p>
<pre><code>&lt;!-- Deep Links --&gt;
&lt;intent-filter&gt;
    &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;
    &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
    &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;
    &lt;!-- Accepts URIs that begin with YOUR_SCHEME://YOUR_HOST --&gt;
    &lt;data
          android:scheme=&quot;[YOUR_SCHEME]&quot;
          android:host=&quot;[YOUR_HOST]&quot; /&gt;
&lt;/intent-filter&gt;
复制代码
</code></pre><p><strong>例子：</strong></p>
<pre><code>&lt;intent-filter&gt;
 &lt;action android:name=&quot;android.intent.action.VIEW&quot;/&gt;
  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot;/&gt;
  &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot;/&gt;
  &lt;data android:scheme=&quot;dynamictheme&quot;/&gt;
  &lt;data 
        android:host=&quot;detail&quot;
        android:scheme=&quot;dynamictheme&quot;/&gt;
&lt;/intent-filter&gt;
复制代码
</code></pre><h2 id="ios-配置">iOS 配置</h2>
<h3 id="打开xcode-info-url-types设置url-scheme">打开<code>Xcode-&gt;Info-&gt;URL Types</code>设置<code>URL Scheme</code></h3>
<p>添加完也直接反应到配置文件<code>info.plist</code>中了，当然你要是觉得自己很厉害，也可以直接在<code>info.plist</code>添加。</p>
<p>
        <a data-fancybox="gallery" href="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a182ec0deebf1~tplv-t2oaga2asx-watermark.awebp">
            <img class="mx-auto" alt="iOS 配置" src="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a182ec0deebf1~tplv-t2oaga2asx-watermark.awebp" />
        </a>
    </p>
<p><strong><code>ios/Runner/Info.plist</code></strong></p>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
&lt;dict&gt;
...
&lt;!-- 其它配置 --&gt;
	&lt;array&gt;
		&lt;dict&gt;
			&lt;key&gt;CFBundleTypeRole&lt;/key&gt;
			&lt;string&gt;Editor&lt;/string&gt;
			&lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
			&lt;array&gt;
				&lt;string&gt;dynamictheme&lt;/string&gt;
			&lt;/array&gt;
		&lt;/dict&gt;
	&lt;/array&gt;
...
&lt;!-- 其它配置 --&gt;
&lt;/dict&gt;
&lt;/plist&gt;

复制代码
</code></pre><h2 id="dart-代码">Dart 代码</h2>
<p><strong>不同状态下实现页面跳转</strong></p>
<pre><code>Future&lt;void&gt; initPlatformStateForStringUniLinks() async {
    String initialLink;
    // App未打开的状态在这个地方捕获scheme
    try {
      initialLink = await getInitialLink();
      print('initial link: $initialLink');
      if (initialLink != null) {
        print('initialLink--$initialLink');
        //  跳转到指定页面
        schemeJump(context, initialLink);
      }
    } on PlatformException {
      initialLink = 'Failed to get initial link.';
    } on FormatException {
      initialLink = 'Failed to parse the initial link as Uri.';
    }
    // App打开的状态监听scheme
    _sub = getLinksStream().listen((String link) {
      if (!mounted || link == null) return;
      print('link--$link');
    //  跳转到指定页面
      schemeJump(context, link);
    }, onError: (Object err) {
      if (!mounted) return;
    });
}
复制代码
</code></pre><p><strong>解析Scheme跳转页面</strong></p>
<p>我配置的<code>scheme</code>是<code>dynamictheme://</code>使用的是<code>Deep Link</code>，你也可以配置成<code>http://www.xx.com</code>和<code>https://www.xx.com</code>这种是<code>App Links</code>。</p>
<pre><code>final Uri _jumpUri = Uri.parse(schemeUrl.replaceFirst(
    'dynamictheme://',
    'http://path/',
  ));
  switch (_jumpUri.path) {
    case '/detail':
      Navigator.of(context).pushNamed(
        Detail.routeName,
        arguments: Detail(value: _jumpUri.queryParameters['name'] ?? '详情'),
      );
      break;
    default:
      break;
}
复制代码
</code></pre><h2 id="scheme-测试地址httpslinkjuejincntargethttps3a2f2ftecodegithubio2fdynamic_theme2fdocument2findexhtml">Scheme <a href="https://link.juejin.cn?target=https%3A%2F%2Ftecode.github.io%2Fdynamic_theme%2Fdocument%2Findex.html">测试地址</a></h2>
<p>测试前需要先<a href="https://link.juejin.cn?target=https%3A%2F%2Fwww.pgyer.com%2FQChJ">安装APK</a>(目前只有安卓APK可以下载，iOS需要自己拉代码打包)。</p>
<pre><code>&lt;a href=&quot;dynamictheme://&quot;&gt; 打开App(dynamictheme://) &lt;/a&gt;
&lt;a href=&quot;dynamictheme://detail&quot;&gt; 打开App跳转到详情页面 &lt;/a&gt;
&lt;a href=&quot;dynamictheme://detail?name=flutter&quot;&gt; 打开App跳转到详情页面带上参数 &lt;/a&gt;
复制代码
</code></pre><h2 id="ios-效果预览">iOS 效果预览</h2>
<h3 id="未打开app开启以后跳转">未打开App（开启以后跳转）</h3>
<p>
        <a data-fancybox="gallery" href="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a185159dc2656~tplv-t2oaga2asx-watermark.awebp">
            <img class="mx-auto" alt="img" src="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a185159dc2656~tplv-t2oaga2asx-watermark.awebp" />
        </a>
    </p>
<h3 id="已打开app监听scheme">已打开App（监听Scheme）</h3>
<p>
        <a data-fancybox="gallery" href="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a1856a5cb2325~tplv-t2oaga2asx-watermark.awebp">
            <img class="mx-auto" alt="img" src="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a1856a5cb2325~tplv-t2oaga2asx-watermark.awebp" />
        </a>
    </p>
<h2 id="android-效果预览">Android 效果预览</h2>
<h3 id="未打开app开启以后跳转-1">未打开App（开启以后跳转）</h3>
<p>
        <a data-fancybox="gallery" href="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a1859954d23e8~tplv-t2oaga2asx-watermark.awebp">
            <img class="mx-auto" alt="img" src="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a1859954d23e8~tplv-t2oaga2asx-watermark.awebp" />
        </a>
    </p>
<h3 id="已打开app监听scheme-1">已打开App（监听Scheme）</h3>
<p>
        <a data-fancybox="gallery" href="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a185c36afb118~tplv-t2oaga2asx-watermark.awebp">
            <img class="mx-auto" alt="img" src="https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2020/6/11/172a185c36afb118~tplv-t2oaga2asx-watermark.awebp" />
        </a>
    </p>

        </div>

        
<div class="post-archive">
    <ul class="post-copyright">
        <li><strong>原文作者：</strong><a rel="author" href="https://luckly.work/">luckly</a></li>
        <li style="word-break:break-all"><strong>原文链接：</strong><a href="https://luckly.work/post/flutter_tips/Flutter%E5%BE%AE%E4%BF%A1%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E8%B7%B3%E5%9B%9EApp%E6%8C%87%E5%AE%9A%E9%A1%B5%E9%9D%A2/">https://luckly.work/post/flutter_tips/Flutter%E5%BE%AE%E4%BF%A1%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E8%B7%B3%E5%9B%9EApp%E6%8C%87%E5%AE%9A%E9%A1%B5%E9%9D%A2/</a></li>
        <li><strong>版权声明：</strong>本作品采用<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议</a>进行许可，非商业转载请注明出处（作者，原文链接），商业转载请联系作者获得授权。</li>
    </ul>
</div>
<br/>



        

<div class="post-archive">
    <h2>See Also</h2>
    <ul class="listing">
        
        <li><a href="/post/flutter_package/flutter%E6%89%93%E5%BC%80%E5%A4%96%E9%83%A8%E9%93%BE%E6%8E%A5/">Flutter打开外部链接</a></li>
        
        <li><a href="/post/flutter_tips/flutter10%E5%88%86%E9%92%9F%E5%88%B6%E4%BD%9C%E4%B8%AA%E4%BA%BA%E8%B5%84%E6%96%99%E5%B1%95%E7%A4%BA%E9%A1%B5/">Flutter10分钟制作个人资料展示页</a></li>
        
        <li><a href="/post/flutter_tips/%E5%9C%A8flutter%E4%B8%AD%E5%88%9B%E5%BB%BA%E5%8F%8D%E8%BD%AC%E5%8D%A1%E7%89%87%E5%8A%A8%E7%94%BB%E7%9A%842%E7%A7%8D%E6%96%B9%E6%B3%95/">在flutter中创建反转卡片动画的2种方法</a></li>
        
        <li><a href="/post/go_basic/go%E8%AF%BB%E5%8F%96text%E6%96%87%E4%BB%B6%E5%86%85%E5%AE%B9%E5%B9%B6%E6%89%93%E5%8D%B0%E6%AF%8F%E8%A1%8C%E6%95%B0%E6%8D%AE/">Go读取text文件内容，并打印每行数据</a></li>
        
        <li><a href="/post/flutter_basic/%E5%A6%82%E4%BD%95%E6%8F%90%E9%AB%98flutter%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%9A%84%E6%80%A7%E8%83%BD/">如何提高flutter应用程序的性能</a></li>
        
    </ul>
</div>


        <div class="post-meta meta-tags">
            
            <ul class="clearfix">
                
                <li><a href='/tags/flutter'>flutter</a></li>
                
            </ul>
            
        </div>
    </article>
    
    

    
    
    <div class="post bg-white">
      <script src="https://utteranc.es/client.js"
            repo= "https://github.com/ITmxs/repo"
            issue-term="pathname"
            theme="github-light"
            crossorigin="anonymous"
            async>
      </script>
    </div>
    
</div>

                    <footer id="footer">
    <div>
        &copy; 2021 <a href="https://luckly.work/">早起的年轻人 By luckly</a>
        
        | <a rel="nofollow" target="_blank" href="http://beian.miit.gov.cn/">粤ICP备2021号-1</a>
        
    </div>
    <br />
    <div>
        <div class="github-badge">
            <a href="https://juejin.cn/user/3843548384077192" target="_black" rel="nofollow"><span class="badge-subject">Powered by</span><span class="badge-value bg-blue">掘金</span></a>
        </div>
        <div class="github-badge">
            <a href="https://space.bilibili.com/480883651" target="_black"><span class="badge-subject">Design by</span><span class="badge-value bg-brightgreen">早起的年轻人</span></a>
        </div>
        <div class="github-badge">
            <a href="https://cloud.tencent.com/developer/user/6702670" target="_black"><span class="badge-subject">Theme</span><span class="badge-value bg-yellowgreen">云社区</span></a>
        </div>
    </div>
</footer>


    
    <script type="text/javascript">
        window.MathJax = {
            tex2jax: {
                inlineMath: [['$', '$']],
                processEscapes: true
                }
            };
    </script>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script><script src="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>

<a id="rocket" href="#top"></a>
<script type="text/javascript" src='/js/totop.js?v=0.0.0' async=""></script>



    <script type="text/javascript" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async></script>




    <script src='/js/douban.js'></script>
    <script src="/js/copy-to-clipboard.js"></script>

                </div>

                <div id="secondary">
    <section class="widget">
        <form id="search" action='https://luckly.work/search/' method="get" accept-charset="utf-8" target="_blank" _lpchecked="1">
      
      <input type="text" name="q" maxlength="20" placeholder="Search">
      <input type="hidden" name="sitesearch" value="https://luckly.work/">
      <button type="submit" class="submit icon-search"></button>
</form>
    </section>
    
    <section class="widget">
        <h3 class="widget-title">最近文章</h3>
<ul class="widget-list">
    
    <li>
        <a href="https://luckly.work/post/nginx/nginx%E6%96%87%E4%BB%B6%E5%86%85%E5%AE%B9/" title="Nginx文件内容">Nginx文件内容</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/nginx/nginx%E6%9E%81%E7%AE%80%E6%95%99%E7%A8%8B/" title="Nginx极简教程">Nginx极简教程</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/nginx/%E5%8D%81%E5%88%86%E9%92%9F%E5%85%A5%E9%97%A8nginx/" title="十分钟入门Nginx">十分钟入门Nginx</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/go/Goland%E8%BF%9C%E7%A8%8B%E5%BC%80%E5%8F%91%E9%85%8D%E7%BD%AE/" title="Goland远程开发配置">Goland远程开发配置</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/%E8%AF%BB%E4%B9%A6/%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90/" title="域名解析">域名解析</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/git/%E6%8F%90%E4%BA%A4%E8%BF%87%E7%A8%8B%E7%9C%81%E7%95%A5%E6%9F%90%E4%BA%9B%E6%96%87%E4%BB%B6/" title="提交过程省略某些文件">提交过程省略某些文件</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/flutter_tips/Flutter_DropdownButton%E7%A4%BA%E4%BE%8B/" title="Flutter_DropdownButton示例">Flutter_DropdownButton示例</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/flutter_tips/Flutter_ExpansionPanelList%E5%92%8CExpansionPanelList.radio%E7%A4%BA%E4%BE%8B/" title="Flutter_ExpansionPanelList和ExpansionPanelList">Flutter_ExpansionPanelList和ExpansionPanelList</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/flutter_tips/Flutter%E5%BE%AE%E4%BF%A1%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E8%B7%B3%E5%9B%9EApp%E6%8C%87%E5%AE%9A%E9%A1%B5%E9%9D%A2/" title="Flutter微信分享链接跳回App指定页面">Flutter微信分享链接跳回App指定页面</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F/%E5%A4%96%E5%8C%85%E5%8F%AF%E8%83%BD%E7%9A%84%E9%97%AE%E9%A2%98/" title="外包可能的问题">外包可能的问题</a>
    </li>
    
</ul>
    </section>

    

    <section class="widget">
        <h3 class="widget-title"><a href='/categories/'>分类</a></h3>
<ul class="widget-list">
    
    <li><a href="https://luckly.work/categories/Flutter/">Flutter (326)</a></li>
    
    <li><a href="https://luckly.work/categories/IT/">IT (2)</a></li>
    
    <li><a href="https://luckly.work/categories/Kotlin/">Kotlin (2)</a></li>
    
    <li><a href="https://luckly.work/categories/Mysql/">Mysql (1)</a></li>
    
    <li><a href="https://luckly.work/categories/nginx/">nginx (1)</a></li>
    
    <li><a href="https://luckly.work/categories/Vue/">Vue (6)</a></li>
    
    <li><a href="https://luckly.work/categories/YouTube%E8%A7%86%E9%A2%91%E4%B8%8B%E8%BD%BD/">YouTube视频下载 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/android/">android (6)</a></li>
    
    <li><a href="https://luckly.work/categories/dart/">dart (96)</a></li>
    
    <li><a href="https://luckly.work/categories/Flutter/">Flutter (28)</a></li>
    
    <li><a href="https://luckly.work/categories/gin/">gin (25)</a></li>
    
    <li><a href="https://luckly.work/categories/git/">git (4)</a></li>
    
    <li><a href="https://luckly.work/categories/Go/">Go (102)</a></li>
    
    <li><a href="https://luckly.work/categories/gorm/">gorm (4)</a></li>
    
    <li><a href="https://luckly.work/categories/grpc/">grpc (1)</a></li>
    
    <li><a href="https://luckly.work/categories/html/">html (3)</a></li>
    
    <li><a href="https://luckly.work/categories/ios/">ios (1)</a></li>
    
    <li><a href="https://luckly.work/categories/linux/">linux (1)</a></li>
    
    <li><a href="https://luckly.work/categories/nginx/">nginx (6)</a></li>
    
    <li><a href="https://luckly.work/categories/python/">python (35)</a></li>
    
    <li><a href="https://luckly.work/categories/read/">读书笔记 (6)</a></li>
    
    <li><a href="https://luckly.work/categories/redis/">redis (2)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B8%AA%E4%BA%BA%E8%B5%84%E6%96%99/">个人资料 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B9%A6%E5%8D%95/">书单 (8)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B9%A6%E8%AF%84/">书评 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统管理师 (19)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E9%A1%B9%E7%9B%AE%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统项目管理师 (25)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%8E%9F%E5%88%99/">原则 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%8E%9F%E7%94%9F%E9%80%9A%E8%AE%AF/">原生通讯 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%9F%BA%E7%A1%80/">基础 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%A4%8D%E5%88%A9%E6%95%88%E5%BA%94/">复利效应 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/">安装教程 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%B0%91%E6%9C%89%E4%BA%BA%E8%B5%B0%E7%9A%84%E8%B7%AF/">少有人走的路 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%BF%83%E8%AF%AD/">心语 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E6%8F%92%E4%BB%B6/">插件 (2)</a></li>
    
    <li><a href="https://luckly.work/categories/%E6%95%99%E5%AD%A6/">教学 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%8E%8B%E9%98%B3%E6%98%8E/">王阳明 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%94%B5%E5%AD%90%E4%B9%A6/">电子书 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%99%BB%E9%99%86%E8%A1%A8%E5%8D%95/">登陆表单 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%A8%BB%E7%9B%9B%E5%92%8C%E5%A4%AB/">稻盛和夫 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%A9%B7%E7%88%B8%E7%88%B8%E5%AF%8C%E7%88%B8%E7%88%B8/">穷爸爸富爸爸 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%B2%BE%E8%BF%9B/">精进 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%BC%96%E7%A8%8B/">编程 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%99%9A%E5%B9%BB/">虚幻 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B4%A2%E5%8A%A1%E8%87%AA%E7%94%B1%E4%B9%8B%E8%B7%AF/">财务自由之路 (2)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%91%E6%AD%A5/">跑步 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%AF%E7%94%B1%E4%BC%A0%E5%8F%82/">路由传参 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%AF%E7%BA%BF/">路线 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%BD%AF%E4%BB%B6%E5%AE%9E%E6%96%BD/">软件实施 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%98%B3%E6%98%8E%E5%BF%83%E5%AD%A6/">阳明心学 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%A1%B9%E7%9B%AE/">项目 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%AD%85%E5%8A%9B/">魅力 (1)</a></li>
    
</ul>
    </section>

    <section class="widget">
        <h3 class="widget-title"><a href='/tags/'>标签</a></h3>
<div class="tagcloud">
    
    <a href="https://luckly.work/tags/flutter/">flutter</a>
    
    <a href="https://luckly.work/tags/IT/">IT</a>
    
    <a href="https://luckly.work/tags/Kotlin/">Kotlin</a>
    
    <a href="https://luckly.work/tags/Mysql/">Mysql</a>
    
    <a href="https://luckly.work/tags/nginx/">nginx</a>
    
    <a href="https://luckly.work/tags/Vue/">Vue</a>
    
    <a href="https://luckly.work/tags/YouTube%E8%A7%86%E9%A2%91%E4%B8%8B%E8%BD%BD/">YouTube视频下载</a>
    
    <a href="https://luckly.work/tags/android/">android</a>
    
    <a href="https://luckly.work/tags/dart/">dart</a>
    
    <a href="https://luckly.work/tags/flutter/">flutter</a>
    
    <a href="https://luckly.work/tags/gin/">gin</a>
    
    <a href="https://luckly.work/tags/git/">git</a>
    
    <a href="https://luckly.work/tags/go/">go</a>
    
    <a href="https://luckly.work/tags/gorm/">gorm</a>
    
    <a href="https://luckly.work/tags/grpc/">grpc</a>
    
    <a href="https://luckly.work/tags/html/">html</a>
    
    <a href="https://luckly.work/tags/ios/">ios</a>
    
    <a href="https://luckly.work/tags/linux/">linux</a>
    
    <a href="https://luckly.work/tags/nginx/">nginx</a>
    
    <a href="https://luckly.work/tags/python/">python</a>
    
    <a href="https://luckly.work/tags/redis/">redis</a>
    
    <a href="https://luckly.work/tags/%E4%B8%AA%E4%BA%BA%E8%B5%84%E6%96%99/">个人资料</a>
    
    <a href="https://luckly.work/tags/%E4%B9%A6%E5%8D%95/">书单</a>
    
    <a href="https://luckly.work/tags/%E4%B9%A6%E8%AF%84/">书评</a>
    
    <a href="https://luckly.work/tags/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统管理师</a>
    
    <a href="https://luckly.work/tags/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E9%A1%B9%E7%9B%AE%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统项目管理师</a>
    
    <a href="https://luckly.work/tags/%E5%85%A5%E9%97%A8/">入门</a>
    
    <a href="https://luckly.work/tags/%E5%8E%9F%E5%88%99/">原则</a>
    
    <a href="https://luckly.work/tags/%E5%8E%9F%E7%94%9F%E9%80%9A%E8%AE%AF/">原生通讯</a>
    
    <a href="https://luckly.work/tags/%E5%9F%BA%E7%A1%80/">基础</a>
    
    <a href="https://luckly.work/tags/%E5%A4%8D%E5%88%A9%E6%95%88%E5%BA%94/">复利效应</a>
    
    <a href="https://luckly.work/tags/%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/">安装教程</a>
    
    <a href="https://luckly.work/tags/%E5%B0%91%E6%9C%89%E4%BA%BA%E8%B5%B0%E7%9A%84%E8%B7%AF/">少有人走的路</a>
    
    <a href="https://luckly.work/tags/%E5%BF%83%E8%AF%AD/">心语</a>
    
    <a href="https://luckly.work/tags/%E6%8F%92%E4%BB%B6/">插件</a>
    
    <a href="https://luckly.work/tags/%E6%95%99%E5%AD%A6/">教学</a>
    
    <a href="https://luckly.work/tags/%E7%8E%8B%E9%98%B3%E6%98%8E/">王阳明</a>
    
    <a href="https://luckly.work/tags/%E7%94%B5%E5%AD%90%E4%B9%A6/">电子书</a>
    
    <a href="https://luckly.work/tags/%E7%99%BB%E9%99%86%E8%A1%A8%E5%8D%95/">登陆表单</a>
    
    <a href="https://luckly.work/tags/%E7%A8%BB%E7%9B%9B%E5%92%8C%E5%A4%AB/">稻盛和夫</a>
    
    <a href="https://luckly.work/tags/%E7%A9%B7%E7%88%B8%E7%88%B8%E5%AF%8C%E7%88%B8%E7%88%B8/">穷爸爸富爸爸</a>
    
    <a href="https://luckly.work/tags/%E7%B2%BE%E8%BF%9B/">精进</a>
    
    <a href="https://luckly.work/tags/%E7%BC%96%E7%A8%8B/">编程</a>
    
    <a href="https://luckly.work/tags/%E8%99%9A%E5%B9%BB/">虚幻</a>
    
    <a href="https://luckly.work/tags/%E8%AF%97/">诗</a>
    
    <a href="https://luckly.work/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/">读书笔记</a>
    
    <a href="https://luckly.work/tags/%E8%B4%A2%E5%8A%A1%E8%87%AA%E7%94%B1%E4%B9%8B%E8%B7%AF/">财务自由之路</a>
    
    <a href="https://luckly.work/tags/%E8%B7%91%E6%AD%A5/">跑步</a>
    
    <a href="https://luckly.work/tags/%E8%B7%AF%E7%94%B1%E4%BC%A0%E5%8F%82/">路由传参</a>
    
    <a href="https://luckly.work/tags/%E8%B7%AF%E7%BA%BF/">路线</a>
    
    <a href="https://luckly.work/tags/%E8%BD%AF%E4%BB%B6%E5%AE%9E%E6%96%BD/">软件实施</a>
    
    <a href="https://luckly.work/tags/%E9%80%9A%E8%AE%AF%E5%BD%95/">通讯录</a>
    
    <a href="https://luckly.work/tags/%E9%98%B3%E6%98%8E%E5%BF%83%E5%AD%A6/">阳明心学</a>
    
    <a href="https://luckly.work/tags/%E9%A1%B9%E7%9B%AE/">项目</a>
    
    <a href="https://luckly.work/tags/%E9%AD%85%E5%8A%9B/">魅力</a>
    
</div>
    </section>

    
<section class="widget">
    <h3 class="widget-title">友情链接</h3>
    <ul class="widget-list">
        
        <li>
            <a target="_blank" href="http://www.topgoer.com/" title="枯藤">枯藤</a>
        </li>
        
        <li>
            <a target="_blank" href="https://gorm.cn/zh_CN/docs/index.html" title="gorm">gorm</a>
        </li>
        
        <li>
            <a target="_blank" href="https://docs.python.org/zh-cn/3/tutorial/index.html" title="python">python</a>
        </li>
        
        <li>
            <a target="_blank" href="https://www.liwenzhou.com/" title="李文周">李文周的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="http://www.xbzweb.com/" title="小包子的博客">小包子的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="https://www.flysnow.org/" title="飞雪无情的博客">飞雪无情的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="https://sliverhorn.com/" title="sliverhorn的博客">sliverhorn的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="http://yuedu.baidu.com/ebook/14a722970740be1e640e9a3e" title="Android Gradle权威指南">Android Gradle权威指南</a>
        </li>
        
        <li>
            <a target="_blank" href="https://gesdh.cn/" title="小格子">格子导航</a>
        </li>
        
        <li>
            <a target="_blank" href="https://itachi.xyz/" title="阿林">itachi&#39;s Blog</a>
        </li>
        
        <li>
            <a target="_blank" href="https://darjun.github.io/" title="大俊">大俊Blog</a>
        </li>
        
        <li>
            <a target="_blank" href="https://geektutu.com/post/quick-golang.html" title="极客兔兔">极客兔兔Blog</a>
        </li>
        
        <li>
            <a target="_blank" href="http://zxfcumtcs.github.io/" title="赵雪峰">雪峰Blog</a>
        </li>
        
    </ul>
</section>


    <section class="widget">
        <h3 class="widget-title">其它</h3>
        <ul class="widget-list">
            <li><a href="https://luckly.work/index.xml">文章 RSS</a></li>
        </ul>
    </section>
</div>
            </div>
        </div>
    </div>
</body>

</html>